import http from './httpInstance'


// 获取社区的人口
function getPopulation(params) {
    return http({
        method: 'post',
        // url: '/integrated-workbench/v1/streetcompositestatisticsCommunityLayer/populationCountPerResidentialQuarter',
        url: '/integrated-workbench/v1/streetcompositestatisticsCommunityLayer/communityPopulationInfo',
        data: params
    })
}

// 获取社区感知资源
function getCommunityResource(params) {
    return http({
        method: 'post',
        url: '/integrated-workbench/v1/streetcompositestatisticsCommunityLayer/communityPerceptionResource',
        data: params
    })
}

// 获取社区事件等级数量
function getCommunityEventLevelCount(params) {
    return http({
        method: 'post',
        url: '/integrated-workbench/v1/enforcement/busizstatistic',
        data: params
    })
}

// h获取社区事件总数
function getCommunityEventCount(params) {
    return http({
        method: 'post',
        url: '/integrated-workbench/v1/streetcompositestatisticsCommunityLayer/communityEventCount',
        data: params
    })
}

// 获取社区概况面积网格灯
function getCommunityAreaGrid(params) {
    return http({
        method: 'post',
        url: '/integrated-workbench/v1/streetcompositestatisticsCommunityLayer/communityStatistics',
        data: params
    })
}

// 获取社区事件趋势
function getCommunityEventTrend(params) {
    return http({
        method: 'post',
        url: '/integrated-workbench/v1/enforcement/dataanalysis/eventtrend',
        data: params
    })
}

export {
    getCommunityResource,
    getPopulation,
    getCommunityEventLevelCount,
    getCommunityEventCount,
    getCommunityAreaGrid,
    getCommunityEventTrend
}